/*
 * Description: 字典调用后台接口JS
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Dongxu.Ni
 * Date: 2020/3/5 15:16
 */

import { httpPost } from '../../utils/axios-utils'

export function dictList(obj, authConfig) {
  return httpPost('/smart-cost/sys/dict/list', obj, authConfig)
}

export function dictPageList(obj, authConfig) {
  return httpPost('/smart-cost/sys/dict/pageList', obj, authConfig)
}

export function dictBatchAdd(arr, authConfig) {
  return httpPost('/smart-cost/sys/dict/batchAdd', arr, authConfig)
}

export function dictBatchEdit(arr, authConfig) {
  return httpPost('/smart-cost/sys/dict/batchEdit', arr, authConfig)
}

export function dictDelete(obj) {
  return httpPost('/smart-cost/sys/dict/delete', obj)
}
